package models.venue.field;

import models.BaseModel;
import models.venue.policy.Policy;

import javax.persistence.*;

/**
 * 场地价格策略
 * Created by hanbin on 17/4/5.
 */
@Entity
@Table(name="field_policies")
public class FieldPolicy  extends BaseModel {

    /**
     * 场地id
     */
    @JoinColumn(name="field_id")
    @ManyToOne
    public Field field;

    /**
     * 价格策略
     */
    @JoinColumn(name="policy_id")
    @ManyToOne
    public Policy policy;

}
